package com.bootdo.common.domain;

import java.util.Objects;

public class MyTuple {
    public String value;
    public Double score;

    public MyTuple(String value, Double score) {
        this.value = value;
        this.score = score;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        MyTuple myTuple = (MyTuple) o;
        return Objects.equals(value, myTuple.value) &&
                Objects.equals(score, myTuple.score);
    }

    @Override
    public int hashCode() {

        return Objects.hash(value, score);
    }
}
